package com.max.sys.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.max.sys.domain.BSysUser;
import com.max.sys.service.IBSysUserService;

@Controller
@RequestMapping("/sys/user")
public class SysUserController {

	@Resource
	private IBSysUserService bSysUserService;

	@RequestMapping(value = { "", "list" })
	public String list(Model model) {
		BSysUser user = bSysUserService.selectByKey("66ab5ad8-1921-4b4c-8c7c-50bd5d63f0fa");
		model.addAttribute("user",user);
		return "sys/user/list";
	}
}
